package com.myk.game.gobangchess.rooms.prerooms;

import com.myk.game.gobangchess.Room;
import com.myk.game.gobangchess.constants.BoardStyleData;
import com.myk.game.gobangchess.constants.ColorCost;
import com.myk.game.gobangchess.signs.GroundSign;

/**
 * 连线围棋
 */
public class ConnectLineGoRoom extends Room {

    public ConnectLineGoRoom(String roomName) {
        super(roomName, "\t\tjiaon的连线围棋。","连线围棋", BoardStyleData.getGoBangStyle(100,100), true, true);
    }

    @Override
    public String getRuleText() {
        return "连线围棋规则等待编写";
    }

    @Override
    public String getCoordMode() {
        return "00000000";
    }

    @Override
    public String getGameInfo() {
        signList.clear();
        signList.add(new GroundSign(getIndex(0,0),getIndex(curGrids.length-1,curGrids[0].length-1), ColorCost.TABLECLOTH_COLOR, ColorCost.TABLECLOTH_COLOR,5f));
        return super.getGameInfo();
    }

    @Override
    public void doRule(int row, int col, int value) {
        curGrids[row][col] = value;
        noticeAllRefreshGameInfo();
    }
}
